package com.hongdee.crm.weChat.controller;

import com.hongdee.crm.weChat.service.ITCrmCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by Liu XiaoLong
 * Date: 2017/10/23.
 * Remark:
 */
@RestController
@RequestMapping("/api/crm/user")
public class WechatTCrmCarController {

    @Autowired
    private ITCrmCarService itCrmCarService;

    /**
     * @Name: 查找用户车辆
     * @Author: Liu XiaoLong
     * @Date: 2017/10/25 10:26
     * @Remark:
     */
    @RequestMapping("/car")
    public Map getCar(@RequestParam (name = "uid",defaultValue = "") String uid,
                      @RequestParam (name = "token",defaultValue = "") String token,
                      @RequestParam (name = "carNo",defaultValue = "") String carNo,
                      @RequestParam (name = "mobile",defaultValue = "") String mobile) throws Exception{

        return itCrmCarService.getCar(uid,carNo,mobile);
    }




}
